let env = '';
let config = {
    defaultAvatar:'http://avatar.user.tcl.com/tcl_image1?imageView2/1/w/180/h/180/format/jpg/q/100|imageslim',
	// storeId:'e468fa7d973d4d68903d91c2cedd3448',//孙尚香商户
	storeId:'tclplus',//	tcl+项目
	platformId:'platform_tcl_shop',
	terminalType:'02',
	tId:'TCL',
	token:'',
	version:'2020030501'
};

//未指定跟跟随使用场景
if(!env){
	try{
		env = __wxConfig.envVersion;
		if(['develop','trial','release', 'production'].indexOf(env)===-1){ //防止微信接口变动导致生产事故
			env = 'release';
		}else if(env === 'develop'){
			if(__wxConfig.accountInfo.appId==='wx270d8b0ba53cfb33'){
				env = 'trial';
			}
		}

	}catch (e) {
		env = 'release';
	}
}


const params = require(`./config/${env}.env`);

export default {
	...config,
	...params.default
};
